package com.iwhalecloud.bss.kite.cucc.spec.impl.query;

import com.iwhalecloud.bss.kite.dataservice.api.IQueryOfferCompRstrCfgService;
import com.iwhalecloud.bss.kite.dataservice.entity.spec.OfferCompRstrCfg;
import com.iwhalecloud.bss.kite.dataservice.mapper.spec.OfferCompRstrCfgMapper;
import com.ztesoft.bss.common.util.SpringUtil;
import org.springframework.stereotype.Service;

@Service
public class OfferCompRstrCfgQueryService implements IQueryOfferCompRstrCfgService {

	@Override
	public OfferCompRstrCfg getOfferCompRstrCfgByOfferProdIdAndType(String firstOfferProdRelId,
			String secondOfferProdRelId, String rstrType) {
		OfferCompRstrCfgMapper offerCompRstrCfgMapper = SpringUtil.getBean(OfferCompRstrCfgMapper.class);
        OfferCompRstrCfg offerCompRstrCfg = offerCompRstrCfgMapper
                .getOfferCompRstrCfgByOfferProdIdAndType(firstOfferProdRelId, secondOfferProdRelId, rstrType);
        return offerCompRstrCfg;
	}

}
